package com.tan.springcloud.Controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class paynacosController {

    @Value("${server.port}")
    private String port;
    @GetMapping(value="/pay/get/{id}")
    public String Payload(@PathVariable("id")Long id){
        System.out.println(port);
        return "nacos,server port***********"+port+"----"+id;
    }
}
